#include <iostream>
#include <assert.h>
using namespace std;
class Date
{
public:
	Date(int year = 1, int month = 1, int day = 1);
	Date(const Date& d)
	{
		_year = d._year;
		_month = d._month;
		_day = d._day;
	}
	void print()
	{
		cout << _year << "-" << _month << "-" << _day << endl;
	}
	int GetMonthDay(int year, int month);
	Date& operator+=(int day);
	Date operator+(int day) const;
	Date& operator-=(int day);
	Date operator-(int day) const;
	Date& operator++();
	Date operator++(int );
	Date& operator--();
	Date operator--(int);
	int operator-(const Date& d)const;
	bool operator<(const Date& x) const;
	bool operator!=(const Date& x) const;
	bool operator==(const Date& x) const;


private:
	int _year;
	int _month;
	int _day;

};
